package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 试题明细
 * </p>
 *
 * @author zhoushuangxiang
 * @since 2020-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QuestionDetail extends Model<QuestionDetail> {

    private static final long serialVersionUID=1L;

    /**
     * 自增ID
     */
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Integer detailId;

    /**
     * 试题ID
     */
    private Integer questionId;

    /**
     * 类型 1-单选 
     */
    private Integer questionType;

    /**
     * 题目
     */
    private String questionTitle;

    /**
     * 本小题分数
     */
    private Integer score;

    /**
     * 排序
     */
    private Integer sortOrder = 0;

    /**
     * 状态 1 启用 2 无效
     */
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.detailId;
    }

}
